package com.zbj;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * User
 *
 * @author weigang
 * @create 2019-07-30
 **/
@Configuration
public class UserConfig {

    @Bean
    public User user() {
        User user = new User();
        user.setId(123);
        user.setName("weiGang");
        user.setAddress("重庆市渝北区");
        return user;
    }
}